<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网页评价</title>
    <!-- 引入Element UI样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background-image: url("xin.jpg");
            background-size: cover;
            background-repeat: no-repeat;
            background-attachment: fixed;
        }
        .box-card {
            width: 480px;
            background-color: rgba(255, 255, 255, 0.85);
        }
        .card-title {
            color: #303133;
            text-align: center;
            margin-bottom: 20px;
        }
        .button-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 10px;
        }
    </style>
</head>
<body>
    <div id="app">
        <el-card class="box-card">
            <div class="card-title">
                <h2>请问您对该个人博客的制作还满意吗？</h2>
            </div>
            <div class="button-container">
                <el-button 
                    type="success" 
                    @click="handleLike" 
                    icon="el-icon-thumb"
                    size="medium">
                    比较满意
                </el-button>
                <el-button 
                    type="danger" 
                    @click="handleDislike" 
                    icon="el-icon-close"
                    size="medium">
                    非常不满意
                </el-button>
            </div>
        </el-card>
    </div>

    <!-- 引入Vue和Element UI -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16/dist/vue.js"></script>
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    <script>
       new Vue({
            el:'#app',
            methods:{
                handleLike(){
                    this.$message({
                        message: '感谢你的肯定',
                        type: 'success',
                        duration: 2000
                    });
                },
                handleDislike(){
                    this.$message({
                        message: '我会继续努力的',
                        type: 'warning',
                        duration: 2000
                    });
                }
            }
        })
    </script>
</body>
</html>